import {post,get} from '../request'

//用户登录
export const login =(param) => post('api/v1/Login/Token',param)

//上传文件
export const uploadFile = (file) => post(`api/v1/UpLoad/upload_training_materials_attachments`,file,)

//获取所有权限列表
export const getQXList = (param) => post(`api/v4/QX/PRO_QX_list`,param)
//获取权限列表空表
export const getQXEmpty = () => post(`api/v4/QX/select_QX_empty_B`,{})
//获取权限角色
export const getRole = () => get(`api/v4/QX/select_role`)
//获取角色权限
export const getQXRole = (role_id) => post(`api/v4/QX/select_QX_role_B`,{role_id})
//批量修改角色权限
export const updateQXRole = (param) => post(`api/v4/QX/update_user_role_right`, param)
